package com.daka.service.impl;

import com.daka.dao.PinganBankOpenRecordDao;
import com.daka.entity.PinganBankOpenRecord;
import com.daka.service.PinganBankOpenRecordService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author beliveli on 2016/3/31 0031.
 */
@Service("pinganBankOpenRecordService")
@SuppressWarnings("unused")
public class PinganBankOpenRecordServiceImpl implements PinganBankOpenRecordService {

    @Resource
    private PinganBankOpenRecordDao pinganBankOpenRecordDao;

    @Override
    public PinganBankOpenRecord save(PinganBankOpenRecord memberInsurance) {
        pinganBankOpenRecordDao.insert(memberInsurance);
        return memberInsurance;
    }

    @Override
    public PinganBankOpenRecord findByVolunteerCode(String volunteerCode) {
        return pinganBankOpenRecordDao.selectByVolunteerCode(volunteerCode);
    }
}
